<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>后台</title>
    <link rel="stylesheet" href="__ADMIN__/css/dashicons.css">
    <link rel="stylesheet" href="__ADMIN__/css/style.css">
</head>
<body>
<div class="wrap wrap-article">
    <h1>商品管理</h1>
    <div class="s-nav">
        <div><form method="post">
            <input type="text" name="goods" value="" placeholder="输入关键字"><input type="submit" value="搜索商品">
        </form></div>
    </div>
    <div class="tips"></div>
    <div class="box">
        <div class="box-body">
            <table>
                <tr><th width="80">状态</th><th>商品名称</th><th width="120">所属分类</th><th width="100">库存</th><th width="150">上架时间</th><th width="100">操作</th></tr>
               <volist name="data" id="vol">

                <tr>
                    <td class="s-show">

                        <if condition="$vol.is_show == 1">
                            <i class="icon-yes">已上架</i><else/>
                            <i class="icon-wait">未上架</i>
                        </if>
                    </td>
                    <td class="s-title">
                        <a href="#">{$vol.gname}</a>
                    </td>
                    <td>
                        <a href="#"><if condition="$vol.cate == null">[无分类]<else/>[{$vol.cate}]</if></a>
                    </td>
                    <td>
                       {$vol.gnum}
                    </td>
                    <td>
                        {$vol.gtime|date='Y-m-d H:i:s',###}
                    </td>
                    <td class="s-act">
                        <a href="__CONTROLLER__/editGoods/id/{$vol.id}">编辑</a>
                        <a href="__CONTROLLER__/delGoods/id/{$vol.id}" onclick="if(confirm('您确定要删除了吗？')===false) return false;">删除</a>
                    </td>
                </tr>
               </volist>
            </table>

        </div>
    </div>
    <div class="pagelist">
        {$page}
    </div>
</div>

</body>
</html>